package com.ruoyi.system.domain.db.repair;

import com.ruoyi.system.domain.db.basic.BasicMaterials;
import com.ruoyi.system.domain.dto.MaterialsQuantityDto;
import lombok.Data;

@Data
public class MaterialsQuantity{
    private Long repair_id;
    private Long materialId;
    private Integer quantity;

//    public BasicMaterials getBasicMaterials(Long material_id){
//        return basicMaterialsService.selectBasicMaterialsByMaterialId(material_id);
//    }
//
//    public MaterialsQuantityDto materialsQuantityTomaterialsQuantityDto(){
//        MaterialsQuantityDto materialsQuantityDto = new MaterialsQuantityDto();
//        materialsQuantityDto.setRepair_id(this.getRepair_id());
//        materialsQuantityDto.setMaterials(getBasicMaterials(this.getMaterialId()));
//        materialsQuantityDto.setQuantity(this.getQuantity());
//        return materialsQuantityDto;
//    }
}
